﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
   public  class EmploveeBLL
    {
        private EmployeeDAL dal;
        public EmploveeBLL()
        {
            dal = new EmployeeDAL();
        }
        public List<Employee> GetList()
        {
            return dal.GetList();
        }
        public bool Insert(Employee bo)
        {
            return dal.Insert(bo);
        }
        public bool Update(Employee bo)
        {
            return dal.Update(bo);
        }
        public bool Delete(Employee bo)
        {
            return dal.Delete(bo);
        }
        public Employee FindByID(string id)
        {
            return dal.FindByID(id);
        }
        public string FindIDByName(string name)
        {
            return dal.FindIDByName(name);
        }

    }
}
